package org.ix.dynamicapis.model.response;

import com.alibaba.excel.annotation.ExcelProperty;
import org.ix.dynamicapis.excel.*;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;
import java.math.BigDecimal;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@ApiModel(description = "接口业务系统列表元素响应实体")
@Getter
@Setter
@ToString
public class ApiSystemListItemResponse implements Serializable {

    @ExcelProperty(value = "接口ID", index = 0)
    @ApiModelProperty(value = "接口ID", position = 0)
    private Integer id;

    @ExcelProperty(value = "业务系统编码", index = 1)
    @ApiModelProperty(value = "业务系统编码", position = 1)
    private String systemCode;

    @ExcelProperty(value = "业务系统名称", index = 2)
    @ApiModelProperty(value = "业务系统名称", position = 2)
    private String systemName;

    @ExcelProperty(value = "接口基础路径", index = 3)
    @ApiModelProperty(value = "接口基础路径", position = 3)
    private String baseUrl;

    @ExcelProperty(value = "接口刷新路径", index = 4)
    @ApiModelProperty(value = "接口刷新路径", position = 4)
    private String refreshUrl;

    @ExcelProperty(value = "备注", index = 5)
    @ApiModelProperty(value = "备注", position = 5)
    private String remark;

    @ExcelProperty(value = "扩展信息", index = 6)
    @ApiModelProperty(value = "扩展信息", position = 6)
    private String extInfo;

    @ExcelProperty(value = "是否删除(0否, 1是)", index = 7)
    @ApiModelProperty(value = "是否删除(0否, 1是)", position = 7)
    private Integer deleted;

    @ExcelProperty(value = "创建人", index = 8)
    @ApiModelProperty(value = "创建人", position = 8)
    private String createUser;

    @ExcelProperty(value = "修改人", index = 9)
    @ApiModelProperty(value = "修改人", position = 9)
    private String updateUser;

    @ExcelProperty(value = "创建时间", index = 10, converter = LocalDateTimeConverter.class)
    @LocalDateTimeFormat
    @ApiModelProperty(value = "创建时间", position = 10)
    private LocalDateTime createTime;

    @ExcelProperty(value = "更新时间", index = 11, converter = LocalDateTimeConverter.class)
    @LocalDateTimeFormat
    @ApiModelProperty(value = "更新时间", position = 11)
    private LocalDateTime updateTime;
}
